package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class CancelRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/Delete_ConcernedPeople";

    private int babyId;

    private int userId;

    public int getBabyId() {
        return babyId;
    }

    public void setBabyId(int babyId) {
        this.babyId = babyId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        CancelRequestBody body = new CancelRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setBabyId(getBabyId());
        body.setUserId(getUserId());
        return body;
    }

    private class CancelRequestBody extends BaseTokenRequestBody {

        @SerializedName("BabyID")
        private int babyId;

        @SerializedName("UserID")
        private int userId;

        private CancelRequestBody() {
            setSv(BaseRequestConfig.SV_CANCEL);
        }

        public int getBabyId() {
            return babyId;
        }

        public void setBabyId(int babyId) {
            this.babyId = babyId;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }
    }
}
